<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="shortcut icon" href="__IMG__/favicon.ico" />
		<link rel="bookmark" href="__IMG__/favicon.ico" type="image/x-icon" 　/>
		<title>代理中心</title>
		<link rel="stylesheet" type="text/css" href="__CSS__/mui.min.css"/>
		<link rel="stylesheet" type="text/css" href="__CSS__/swiper-3.4.2.min.css"/>
		<link rel="stylesheet" type="text/css" href="__CSS__/common.css"/>
		<link rel="stylesheet" type="text/css" href="__CSS__/index.css"/>
		<script src="__JS__/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__JS__/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
            mui.init();
		</script>
      <style type="text/css">
       	.table_box table{
       		width: 100%;
       		text-align: center;
       		border: none;
       		background: #FFF;
       	}
       	.table_box table th{
       		background: #D8D8D8;
       	}
       	.table_box table th,.table_box table td{
       		border: none;
       		padding: 10px 2px;
       	}
       	.table_box table tr{
       		border-bottom: 1px solid #D8D8D8;
       	}
       </style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">代理中心(总计：{$all_my_win})</h1>
		</header>
		
		<div class="mui-content" style="padding-bottom: 0px">
			<form action="{:url('')}">
				<div style="width: 100%;background-color: #fff;" class="time_box">
					<span>
						起
					  <input type="text" class="demo-input" placeholder="请选择日期" value="{$_GET['start'] ?? ''}" name="start" style="height: 25px" id="test1" lay-key="1">
					</span><span>
						止
					  <input type="text" class="demo-input" placeholder="请选择日期" value="{$_GET['end'] ?? ''}" name="end" style="height: 25px"  id="test2" lay-key="2">
					</span>
					<span>
						<input type="button" id="" value="查询" onclick="submit()" />
					</span>
				</div>
			</form>
		    <div class="table_box">
		    	<table border="" cellspacing="" cellpadding="">
		    		<tr>
		    			<th>房间</th>
		    			<th>输赢</th>
						<th>返水</th>
		    			<th>实际输赢</th>
		    			<th>我的盈利</th>
					</tr>
						{foreach $data as $k=>$v}
		    		    <tr>
						<td>
							<a style="color:#12C2FE" href="{:url('mine/proxy_transaction_record',array('cate'=>$v['cate'],'hall'=>$v['hall']))}">{$v['room']}</a>
						</td>
						<td>{$v['total_money']|default='0.00'}</td>
						<td>{$v['back_money']|default='0.00'}</td>
						<td>{$v['fact_money']|default='0.00'}</td>
						<td>{$v['my_win']|default='0.00'}</td>
					   </tr>
					{/foreach}
		    	</table>
		    </div>
		</div>
	</body>
	<script src="__JS__/laydate/laydate.js" type="text/javascript" charset="utf-8"></script>
	<script src="__JS__/laydate.js" type="text/javascript" charset="utf-8"></script>
</html>
